package com.rentong.wx.cust.dao;

import com.rentong.wx.cust.domain.CustServiceOrderTimeEntity;
import com.rentong.wx.cust.domain.CustUserServiceTimeEntity;
import com.rentong.wx.cust.dto.CustUserServiceTimeEntityDto;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import tk.mybatis.mapper.common.BaseMapper;

import java.util.Date;
import java.util.List;

/**
 * 
 * 
 * @author zhangle
 * @email 459343178@qq.com
 * @date 2024-12-24 14:42:31
 */
@Mapper
public interface CustUserServiceTimeDao extends BaseMapper<CustUserServiceTimeEntity> {

    List<CustServiceOrderTimeEntity> getServiceTimeList(@Param("custId") Long custId);

    void deleteByServiceDates(@Param("list") List<Date> dateList,@Param("custId") Long custId);

    void batchSave(@Param("list") List<CustUserServiceTimeEntity> custUserServiceTimeEntities);

    List<CustUserServiceTimeEntity> getCustServiceTimeList(@Param("custId") Long custId);

    List<CustUserServiceTimeEntityDto> getChefServiceTimeList(@Param("custId") Long custId);

    List<CustUserServiceTimeEntity> getServiceTimeByCustId(@Param("custId") Long custId);

    CustUserServiceTimeEntity getbyCustId(@Param("custId") Long custId);

    CustUserServiceTimeEntity selectByServiceDate(@Param("serviceOrderDate") Date serviceOrderDate, @Param("chefId") Long chefId);

    void updateFabuByCustIdAndDate(@Param("orderType") Integer orderType, @Param("custId") Long custId, @Param("serviceDate") Date serviceDate);


}
